package err

const (
	JSONERR        = "1001"
	SAVEERR        = "1002"
	SUCESS         = "0"
	NOTVALID_ERROR = "10001" //接口参数校验错误
	NODBERR        = "10002" //数据库没有这条记录
	DUPLICATE      = "10003" //重复的数据
	SYSTEMERR      = "99"    //系统异常
	DUPLICATEBIND  = "10005" //重复绑定
	FINDDBERR      = "10006" //找不到相关记录
	DEVICEUNONLINE = "10008" //设备不在线
	TASKRUNNING    = "10009" //设备在执行任务
	TASKFINISH     = "10010" //任务已完成
	TASKSTOPED     = "10011" //任务已停止
	DeleteErr      = "20001" //删除失败
	SENDERR        = "20002" //发送失败
)

var Errortype = map[string]string{
	JSONERR:        "数据载荷json异常",
	SAVEERR:        "数据保存失败",
	SUCESS:         "处理成功",
	NOTVALID_ERROR: "接口参数校验错误",
	NODBERR:        "找不到这条记录",
	DUPLICATE:      "重复数据",
	SYSTEMERR:      "系统异常",
	DUPLICATEBIND:  "重复绑定",
	FINDDBERR:      "节点下没有文件服务",
	DEVICEUNONLINE: "设备不在线",
	TASKRUNNING:    "设备在执行任务",
	TASKFINISH:     "任务已完成",
	TASKSTOPED:     "任务已停止",
	DeleteErr:      "删除失败",
	SENDERR:        "发送失败",
}
